.container-register {
    width: 100%;
    height: calc(100% - 50px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.register-dialog {
    width: 450px;
    height: 480px;
    background-color: rgba(255,255,255,0.8);
    padding-top: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 表单内容适配新尺寸 */
.register-dialog .register-form {
    padding: 0 25px;
    height: 100%;
    overflow-y: auto; /* 内容过多时滚动 */
}

.register-dialog .form-title {
    font-size: 25px;
    color: #1a73e8;
    text-align: center;
    margin-bottom: 15px;
}

/* 紧凑型表单组 */
.register-dialog .form-group {
    margin-bottom: 12px;
}

.register-dialog .form-group label {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
    display: block;
}

/* 输入框尺寸适配 */
.register-dialog input[type="text"],
.register-dialog input[type="password"],
.register-dialog input[type="url"] {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    background: rgba(255,255,255,0.9); /* 增强可读性 */
}

/* 文件上传区域优化 */
.register-dialog .upload-area {
    border: 1px dashed #ccc;
    padding: 8px;
    border-radius: 4px;
    text-align: center;
    background: rgba(255,255,255,0.9);
}

.register-dialog .upload-hint {
    font-size: 11px;
    color: #999;
    display: block;
    margin-top: 4px;
}

/* 紧凑按钮 */
.register-dialog .submit-btn {
    width: 100%;
    padding: 8px;
    margin-top: 10px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

/* 交互状态 */
.register-dialog input:focus {
    outline: 2px solid rgba(26,115,232,0.3);
}

.register-dialog .submit-btn:hover {
    background: #1557b0;
}

/* 滚动条美化 */
.register-dialog ::-webkit-scrollbar {
    width: 4px;
}

.register-dialog ::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 2px;
}


/*头像上传*/
.avatar-upload-container {
    display: flex;
    gap: 20px;
    align-items: center;
}

.avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px dashed #ccc;
    overflow: hidden;
    background: #f8f9fa;
    flex-shrink: 0;
}

#avatarPreview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.upload-area {
    position: relative;
    border: 2px dashed #ced4da;
    border-radius: 8px;
    padding: 20px;
    transition: border-color 0.3s;
    background: #f8f9fa;
}

.upload-area:hover {
    border-color: #4dabf7;
}

.upload-input {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    cursor: pointer;
}

.upload-ui {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.upload-icon {
    width: 32px;
    height: 32px;
    fill: #adb5bd;
}

.upload-title {
    margin: 0;
    color: #495057;
    font-weight: 500;
}

.upload-hint {
    margin: 0;
    color: #868e96;
    font-size: 0.9em;
}